#coding:utf-8
from django.http import HttpResponse, HttpRequest, JsonResponse
from django.views.generic import View
def index():
    HttpResponse('这里是首页')


class User(View):
    def get(self):
        return JsonResponse({
            'code': 1,
            'msg': "登录成功",
        })
